package com.genius.Genius.Util.NetWork;

import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.Map;

public class InetUtils {
    public String getLocalHostIP() throws UnknownHostException {
        return InetAddress.getLocalHost().getHostAddress();
    }

    public static void main(String[] args) {
        InetSocketAddress inetSocketAddress = new InetSocketAddress("172.18.192.1",8686);
        System.out.println(inetSocketAddress.getAddress());
        Map<Object, Object> objectObjectHashMap = new HashMap<>();
        System.out.println(int.class);
        System.out.println(Integer.TYPE);
        System.out.println(objectObjectHashMap.getClass().getClass());
    }
}
